package com.huarui.receivable.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.receivable.dao.IReceivableDao;

public class ReceivableDaoImpl extends BaseDaoImpl implements IReceivableDao{

	@SuppressWarnings("unchecked")
	@Override
	public Integer deleteByMap(Map map) {
		return this.getSqlMapClientTemplate().delete(namespace+".deleteByMap", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Map> getListByConditions(Map map) {
		return this.getSqlMapClientTemplate().queryForList(namespace+".getListByConditions", map);
	}

	@SuppressWarnings("unchecked")
	@Override
	public Integer getListCountByConditions(Map map) {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(namespace+".getListCountByConditions", map);
	}

}
